package com.online.dao;

import com.online.entity.Option;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface OptionMapper {

    List<Option> selectOptionByKnowledge(String knowledge);

    Option selectOptionById(Integer optionId);

    int addOption(Option option);

    List<Option> selectKnowledge();

    int countOptionNumber(String knowledge);

    List<Option> selectRandom(@Param("optionsNumber") int optionsNumber,@Param("optionsKnowledge") String optionsKnowledge);

    List<Option> showOptions();

    int deleteRecord(Integer optionId);
}
